package com.hx.springboot.dome01.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BookInfo implements Serializable {
    private Integer bookId;
    private String bookName;
    private String author;
    private String publish;
    private String isbn;
    private String introduction;
    private Integer languageId;
    private BigDecimal price;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date pubDate;
    private Integer classId;
    private Integer stockNum;
    private String languageName;
    private String className;



    @Override
    public String toString() {
        return "BookInfo{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", author='" + author + '\'' +
                ", publish='" + publish + '\'' +
                ", isbn='" + isbn + '\'' +
                ", introduction='" + introduction + '\'' +
                ", languageId=" + languageId +
                ", price=" + price +
                ", pubDate=" + pubDate +
                ", classId=" + classId +
                ", stockNum=" + stockNum +
                ", languageName='" + languageName + '\'' +
                ", className='" + className + '\'' +
                '}';
    }
}
